﻿<div class="widget white-t w80">
    <div class="header">
        <span class="icon"></span><span>
            @ViewBag.ActiveUrl.Title
        </span>
    </div>
    @*<form id="_f" action="@ViewBag.ActiveUrl.Url" method="post" class="ajax">*@
    @using (Html.Kaio().BeginForm(new jQueryAjaxOptions() { Type = AjaxRequestDataType.Script, Loading = true, OnComplete = "$('#recaptcha').recaptcha();" },new {@id="_f"}))
    {
        <div>
            @Html.AntiForgeryToken()
            <table>
                <tr>
                    <td colspan="2" class="caption">
                        @ForumContext.GetText(LanguageSection.ACTIVE_REQUEST, "Info")
                    </td>
                </tr>
                <tr>
                    <td class="table-cell width40">
                        @ForumContext.GetMvcText(LanguageSection.ACTIVE_REQUEST, "Email")
                    </td>
                    <td class="table-cell">
                        <input type="text" name="email" id="email" class="input {validate:{required:true,email:true}}" />
                    </td>
                </tr>
                <tr>
                    <td class="table-cell">
                        @ForumContext.GetMvcText(LanguageSection.ACTIVE_REQUEST, "Captcha")
                    </td>
                    <td class="table-cell">
                        <div id="recaptcha" class="recaptcha">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="table-cell">
                        &nbsp;
                    </td>
                    <td class="table-cell">
                        @Html.Link("javascript://", ForumContext.GetText(LanguageSection.ACTIVE_REQUEST, "SEND"), new {@class = "ui-button", onclick = "$('#_f').submit()"})
                    </td>
                </tr>
            </table>
        </div>
    }
</div>

@using(Html.BeginScriptBlock())
{
    <script type="text/javascript">
        $(function () {

            $('#recaptcha').recaptcha();
        });
      
    </script>
}
